import { Component, OnInit } from '@angular/core';

//用户模型名
export class UserData {
  id: number;
  username: string;
  email: string;
  password: string;
}
//用户数据
const USERS: UserData[] = [
  {
    id: 1,
    username: 'woaitianwen',
    email: 'woaitianwen@qq.com',
    password: '123456',
  },
  {
    id: 2,
    username: 'yuyi',
    email: 'yuyi@qq.com',
    password: '123456',
  },
  {
    id: 3,
    username: 'node',
    email: 'node@qq.com',
    password: '123456',
  },
  {
    id: 4,
    username: 'haha',
    email: 'haha@qq.com',
    password: '123456',
  },
  {
    id: 5,
    username: 'sunlu',
    email: 'sunlu@qq.com',
    password: '123456',
  },
];

@Component({
  selector: 'app-users',
  templateUrl: './users.component.html',
  styleUrls: ['./users.component.css']
})
export class UsersComponent implements OnInit {
  title = '用户列表页';
  //获取菜单的数据
  users = USERS;
  constructor() { }

  ngOnInit() {
  }

}
